package com.aaa.controller;

import com.aaa.annotation.MyAnnotation;
import com.aaa.service.BranchService;
import com.aaa.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller

@RequestMapping("/branch")
public class BranchController {
    @Autowired
    private BranchService branchService;

    @RequestMapping("/list")
    @ResponseBody
    public R list(){
        return branchService.findAll();
    }
}
